| Python3Script Xojo Plugin |
|
Python3Function Class (console safe)
This class represents a function declaration of a module or class function. The class can be used to invoke a function on class or a module.
Python3Object
Python3Function
class Python3Function
Properties
Name (Inherited) (console safe) | Returns the name of the object. |
OwnerModule (console safe) | Returns the owner module of the function |
Methods
Invoke (console safe) | Invokes a Python function. |
Examples
func = package.GetFunction("TestFunction")
if func <> nil then
result = func.Invoke(nil)
if result <> nil then
else
if Python3Script.ErrorOccurred then
MsgBox Python3Script.GetError()
Python3Script.ClearError()
end if
end if
end if
Supported Platforms:
macOS Intel 64 bitmacOS Apple SiliconWindows 32 bitWindows 64 bitWindows ARM 64 bitLinux 32 bitLinux 64 bitLinux ARM 32 bitLinux ARM 64 bit